Optimal. Leaf size=23 \[ \frac {\log \left (a \cosh ^2(c+d x)+b\right )}{2 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4138, 260} \[ \frac {\log \left (a \cosh ^2(c+d x)+b\right )}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 260
Rule 4138
Rubi steps
\begin {align*} \int \frac {\tanh (c+d x)}{a+b \text {sech}^2(c+d x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x}{b+a x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {\log \left (b+a \cosh ^2(c+d x)\right )}{2 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.18, size = 26, normalized size = 1.13 \[ \frac {\log (a \cosh (2 (c+d x))+a+2 b)}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 76, normalized size = 3.30 \[ -\frac {2 \, d x - \log \left (\frac {2 \, {\left (a \cosh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{2} + a + 2 \, b\right )}}{\cosh \left (d x + c\right )^{2} - 2 \, \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + \sinh \left (d x + c\right )^{2}}\right )}{2 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 38, normalized size = 1.65 \[ \frac {\ln \left (a +b \mathrm {sech}\left (d x +c \right )^{2}\right )}{2 d a}-\frac {\ln \left (\mathrm {sech}\left (d x +c \right )\right )}{d a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.38, size = 51, normalized size = 2.22 \[ \frac {d x + c}{a d} + \frac {\log \left (2 \, {\left (a + 2 \, b\right )} e^{\left (-2 \, d x - 2 \, c\right )} + a e^{\left (-4 \, d x - 4 \, c\right )} + a\right )}{2 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.35, size = 51, normalized size = 2.22 \[ \frac {\ln \left (a+2\,a\,{\mathrm {e}}^{2\,c}\,{\mathrm {e}}^{2\,d\,x}+a\,{\mathrm {e}}^{4\,c}\,{\mathrm {e}}^{4\,d\,x}+4\,b\,{\mathrm {e}}^{2\,c}\,{\mathrm {e}}^{2\,d\,x}\right )-2\,d\,x}{2\,a\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 7.04, size = 124, normalized size = 5.39 \[ \begin {cases} \frac {\tilde {\infty } x \tanh {\relax (c )}}{\operatorname {sech}^{2}{\relax (c )}} & \text {for}\: a = 0 \wedge b = 0 \wedge d = 0 \\\frac {1}{2 b d \operatorname {sech}^{2}{\left (c + d x \right )}} & \text {for}\: a = 0 \\\frac {x \tanh {\relax (c )}}{a + b \operatorname {sech}^{2}{\relax (c )}} & \text {for}\: d = 0 \\\frac {x - \frac {\log {\left (\tanh {\left (c + d x \right )} + 1 \right )}}{d}}{a} & \text {for}\: b = 0 \\\frac {x}{a} + \frac {\log {\left (- i \sqrt {a} \sqrt {\frac {1}{b}} + \operatorname {sech}{\left (c + d x \right )} \right )}}{2 a d} + \frac {\log {\left (i \sqrt {a} \sqrt {\frac {1}{b}} + \operatorname {sech}{\left (c + d x \right )} \right )}}{2 a d} - \frac {\log {\left (\tanh {\left (c + d x \right )} + 1 \right )}}{a d} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________